[#ftl]

[#function getMajorItem major item]
    [#list major.items as v]
        [#if v.name == item]
            [#return v/]
        [/#if]
    [/#list]
    [#return emptyItem/]
[/#function]